#include <string>
#include <iostream>
using namespace std;

string solve(string s, string t) {
    if (s == "" || t == "") return s == "" ? t : s;
    string ans = "";
    int n = s.size(), m = t.size();
    int i = 0, j = 0, next = 0;
    while (i < n && j < m)
    {
        int a = s[i++] - '0';
        int b = t[j++] - '0';
        ans += to_string((a + b + next) % 10);
        next = (a + b + next) / 10;
    }

    while (i < n)
    {
        int a = s[i++] - '0';
        ans += to_string((a + next) % 10);
        next = (a + next) / 10;
    }

    while (j < m)
    {
        int b = t[j++] - '0';
        ans += to_string((b + next) % 10);
        next = (b + next) / 10;
    }

    if (next > 0)
        ans += to_string(next);

    while (ans[ans.size() - 1] == '0' && ans.size() > 1)
        ans.pop_back();

    reverse(ans.begin(), ans.end());
    return ans;
}

int main()
{
    solve("1", "99");
    return 0;
}